<template>
  <div>
    {{ store.count }}
    <button @click="addNum">点击我</button>
  </div>
</template>

<script setup>
//pinia
import { useCounterStore } from "../stores/counter";
const store = useCounterStore();
const addNum = () => {
  store.addNum();
};
</script>

<style lang="scss" scoped>
</style>